package com.appspot.etao;

import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

public final class Constant {
	/**
	 * version control by google: XD7JM9vn3SS2
	 * QgzAHqaE9mzPtNad
	 */
	public static final SimpleDateFormat FORMATER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static final SimpleDateFormat FORMATER_DETAIL = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
	
	public static final String APP_KEY = "12014177";
	public static final String APP_SECRET = "1fe310161e05b1d2429cba86c4ee47f5";
	public static final String NICK = "gdzql";
	public static final String PID = "mm_13105289_0_0";
	
	//test
//	public static final String ENV ="http://gw.api.tbsandbox.com/router/rest";
	//product
	public static final String ENV = "http://gw.api.taobao.com/router/rest";
	
	public static final int MIN_PAGE_NO = 1;
	public static final int MAX_PAGE_NO = 99;
	public static final int MIN_PAGE_SIZE = 10;
	public static final int MAX_PAGE_SIZE = 99;
	
	public static final int TOP_N = 10;
	
	/** 分批从淘宝取数据，一次获取的类目数目， 将获取类目下的所有淘宝客推广数据 */
	public static final int CATCH_BLOCK = 10;
	
	//fields
	public static final String FIELDS_ITEMCAT = "cid,parent_cid,name,is_parent,status,sort_order";
	public static final String FIELDS_TAOBAOKEITEM = "iid,title,nick,pic_url,price,click_url,commission,commission_rate,commissioin_num,commission_volume";
//	public static final String FIELDS_SHOP = "sid,cid,title,nick,desc,bulletin,pic_path,created,modified";
	public static final String FIELDS_SHOP = "sid,cid,title,nick,pic_path,created,modified";
	public static final String FIELDS_SHOP_TAOBAOKE = "user_id,shop_title,click_url,shop_commission";
	public static final String FIELDS_USER = "user_id,nick,sex,buyer_credit,seller_credit,location,created,last_visit,birthday,type,has_more_pic,item_img_num,item_img_size,prop_img_num,prop_img_size,auto_repost,promoted_type,status,alipay_bind,consumer_protection";
	
}
